home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 11
/
011.d81
/
lunar lander
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
5KB
|
114 lines
1 poke46,66:clr
5 poke53280,0:poke53281,0
6 print"[147] real time lunar lander"
7 print" joystick in port #2":poke53269,0:j=56320:dimh$(236)
8 fori=1to4000:next
9 f$=chr$(180) : l$=chr$(170)
10 printchr$(147)" preparing to launch lander [146]"
11 print" 100 "f$" "l$" 500
12 [131] 0.0,.10,.40,1.0,1.5,2.0,5.0,10.0,20.0,60.0
13 [131] 235,219,203,179,163,155,131,115,99
14 [129]i[178]0[164]9:[135]t(i):[130]:[129]i[178]1[164]9:[135]yb(i):[130]
15 [131] 500,483,466,450,433,415,397,387,377,368,359,350,340,330,320
16 [131] 310,300,290,281,272,263,254,244,236,228,220,210,200,192,184,176
17 [131] 168,161,154,147,140,136,132,128,124,120,116,112,108,104,100,96
18 [131] 92 ,89 ,86 ,83 ,80 ,77 ,74 ,71 ,68 ,65 ,55 ,40 ,30 ,20 ,10 ,0 ,
19 [129]i[178]50[164]236[169]3:[135]h$(i):[130]:[135]qw$:h$(197)[178]"86 "
20 [153]" 80.0 "f$" "l$" 450
30 print" 60.0 "f$" "l$" 400
40 [153]" 50.0 "f$" "l$" 375
50 print" 40.0 "f$" "l$" 350
60 [153]" 30.0 "f$" "l$" 325
70 print" 20.0 "f$" "l$" 300
80 [153]" 15.0 "f$" "l$" 275
90 print" 10.0 "f$" "l$" 250
100 [153]" 7.50 "f$" "l$" 225
110 print" 5.00 "f$" "l$" 200
120 [153]" 4.00 "f$" "l$" 175
130 print" 3.00 "f$" "l$" 150
140 [153]" 2.00 "f$" "l$" 140
150 print" 1.50 "f$" "l$" 130
160 [153]" 1.25 "f$" "l$" 120
170 print" 1.00 "f$" "l$" 110
180 [153]" 0.80 "f$" "l$" 100
190 print" 0.60 "f$" "l$" 90
200 [153]" 0.40 "f$" "l$" 80
210 print" 0.20 "f$" "l$" 70
220 [153]" 0.10 "f$" "l$" 60
230 print" 0.05 "f$" "l$" 30
240 [153]" 0.00 "[199](204);:[129]i[178]1[164]24:[153][199](175);:[130]:[153][199](186);
250 [153]" 0";
300 v[178]53248:[151]v[170]16,2:[151]53265,27:[151]v[170]21,0
301 [129]i[178]0[164]3:[151]2040[170]i,250[170]i:[151]v[170]39[170]i,1:[130]
302 [129]i[178]0[164]7:p(i)[178]2[174]i:[130]:d[178]1:e[178]2:f[178]7:g[178]8:h[178]16000:c[178]64:a[178]20:z[178]3
310 [129]i[178].[164]144:[135]t:[151]1024,i:[139]t[179]0[167][129]j[178]1[164][171]t:[151]h[170]p[170]j,0:[130]:p[178]p[171]t:[137]320
315 p[178]p[170]1:[151]h[170]p,t
320 [130]
321 a[178]100.0:l$[178]" "
330 x1[178]v:y1[178]v[170]1:x2[178]v[170]2:y2[178]v[170]3:x3[178]v[170]4:y3[178]v[170]5:x4[178]v[170]6:y4[178]v[170]7
335 t[178]51:b[178]236:l[178]18:r[178]65
340 [151]x1,l:[151]x2,r:f$[178]"5000":[151]x3,160:[151]y3,t:[151]v[170]29,12
350 [151]v[170]23,8:[151]v[170]21,7:j[178]56320:e[178]125:q[178]126:g[178]3:c[178]162:[153]"";
360 v$[178]"0.0000":a$[178]"100.00"
370 i[178]2.4:u[178]212:[151]y1,t:[151]y2,u:r[178]2000:s[178]5000:t[178]10:y[178]200
375 c[178]16:d[178]6:[151]v[170]21,7
380 [153]"alt="a$" vel="v$" thr="h$(u)" fuel="f$:[153]"on";
385 f[178]5000:w[178]0:a[178]100
390 [153]""a$""v$""h$(u)""f$:[153]"on";
400 z[178][194](j):[139]z[178]e[175](u[179]b)[167]u[178]u[170]g:[151]y2,u:[137]420
403 [139]z[178]q[175](u[177]t)[167]u[178]u[171]g:[139]u[177]50[167][151]y2,u:[137]420
404 [139]u[179]50[167]u[178]50
407 [139](z[175]c)[178].[167]u[178]b:[151]y2,u
420 x[178][197](h$(u)):f[178]f[171]x[173]t:v2[178](r[172]x[173](s[170]f))[171]t[172]i:w[178]w[170]v2[173]t:a[178]a[170]w[173]y
430 a$[178][200]([196](a)[170]l$,d):v$[178][200]([196](w)[170]l$,d):f$[178][202]([196](f)[170]l$,2,4)
440 [141]500
445 [139]a[177].01[167]450
446 [137]470
450 [139]f[177][178].[167]390
460 [153][199](19)[199](18)" you are out of fuel ":[137]474
470 [153]" throttle locked up"
471 [153]" retros firing"
472 [153]" begin landingwait"
474 q[178]237[171][194](y1):[129]i[178]1[164]q:z[178][194](y1)[170]1:[151]y1,z:[151]y3,z[171]5
475 [129]l[178]1[164]80:[130]:[130]:[151]y1,235:[139]f[179].[167]482
480 [139]w[177][178][171]5[167][137]485
481 [139]w[177][178][171]15[167]490
482 [153]" way too hardwait":[151]2042,253
483 [153]" you bought the farmwait"
484 [151]x3[170]2,160:[151]y3,225:[137]650
485 [153]"great landingwait":[137]650
490 [153]" not so hot, butwait"
491 [153]" you made itwait"
492 [137]650
500 [139]a[179]0[167][142]
501 [139]a[179]t(1)[167]y[178]yb(1)[171](a[171]t(0))[172]160:[137]600
510 [139]a[179]t(2)[167]y[178]yb(2)[171](a[171]t(1))[172]80:[137]600
520 [139]a[179]t(3)[167]y[178]yb(3)[171](a[171]t(2))[172]40:[137]600
530 [139]a[179]t(4)[167]y[178]yb(4)[171](a[171]t(3))[172]32:[137]600
540 [139]a[179]t(5)[167]y[178]yb(5)[171](a[171]t(4))[172]16:[137]600
550 [139]a[179]t(6)[167]y[178]yb(6)[171](a[171]t(5))[172]8:[137]600
560 [139]a[179]t(7)[167]y[178]yb(7)[171](a[171]t(6))[172]3.2:[137]600
570 [139]a[179]t(8)[167]y[178]yb(8)[171](a[171]t(7))[172]1.6:[137]600
580 [139]a[179]t(9)[167]y[178]yb(9)[171](a[171]t(8))[172].8:[137]600
590 y[178]67[171](a[171]t(9))[172].4
600 [139]y[177]50[167][151]y1,[181](y):[151]y3,[181](y):co[178]0:[142]
605 co[178]co[170]1:[139]co[179]15[167][142]
610 [153]"you are leaving thewait"
615 [153]"moon's gravitational fieldwait"
620 [153]"and will drift endlesslywait"
625 [153]"in the dark reaches of spacewait"
650 [153][199](19)[199](18)" f1 to play again, f3 to stop "
652 [161]a$:[139]a$[178][199](133)[167][138]
653 [139]a$[178][199](134)[167][151]v[170]21,0:[153][199](147):[151]46,27:[137]60000
654 [137]652
700 [131] -18,4,-2,7,-2,7,192,3,255,240,255,255,252,3,255,240,0,7,192,0,7
701 [131] -2,4,-36,64,0,1,192,0,7,192,0,31,255,192,127,255,192,31,255,192
702 [131] 7,192,0,1,192,-2,64,-39,129,0,1,129,128,7,255,224,30,126,120,252
703 [131] 60,63,30,126,120,7,255,224,1,255,128,1,129,128,3,0,192,15,129
704 [131] 240,-16,15,197,224,31,247,226,29,255,254,125,254,124,127,255
705 [131] 254,255,255,255,199,187,187,219,17,147,219,85,131,219,85,171
706 [131] 199,85,187,219,85,187,219,85,187,219,17,187,199,187,187,255,255
707 [131] 254,127,239,254,127,239,254,63,255,228,32,253,196,3,157,128
60000 [153]"loadload"[199](34)"payload"[199](34)",8":[153]"run"
60002 [151]631,13:[151]632,13:[151]198,2:[128]